import { defineConfig } from 'vite'
import UnoCSS from 'unocss/vite'
import path from 'path';

import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
// https://vite.dev/config/
export default defineConfig({
  plugins: [vue(), UnoCSS(), AutoImport({
    imports: [
      'vue',
      'vue-router',
      'pinia',
    ],
    dirs: ['src/store', "src/utils"],
  }),],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    },
  },
})

